<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<link href="<?php echo base_url()?>common/css/public.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?php echo base_url()?>common/kindeditor/themes/default/default.css" />
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/layer/layer.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.validate.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.metadata.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.validate.messages_cn.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/validate.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/additional-methods.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/validateForm.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.Msg.js"></script>
<script>
    $(function () {
        var index = parent.layer.getFrameIndex(window.name);
        $(".not").click(function () {
            parent.layer.close(index);
        });
    })
    function Success(data) {
        parent.Success(data);
    }
    $(function () {
        $.validate_menu('ajax_form','<?php echo $menu_model->menuid?>');
    });
</script>
<div id="dcMain" style="margin-left:0;padding-top:10px;">
    <!-- 当前位置 -->
    <div id="manager" class="mainBox" style="padding-top:0;">
        <form id="ajax_form" method="post" action="<?php echo site_url('admin/menu/ajax_edit_top_menu')?>">
           <input type="hidden" value="<?php echo $menu_model->menuid?>" name="menuid" id="menuid" />
            <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">

                <tr>
                    <td width="100" align="right">标题</td>
                    <td>
                        <input style="height:30px;width:200px;" type="text" value="<?php echo $menu_model->title?>" name="title" id="title" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right">外语标题</td>
                    <td>
                        <input style="height:30px;width:200px;" type="text" value="<?php echo $menu_model->entitle?>" name="entitle" id="entitle" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right">控制器</td>
                    <td>
                        <input style="height:30px;width:200px;" type="text" value="<?php echo $menu_model->menu_control?>" name="menu_control" id="menu_control" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right">方法</td>
                    <td>
                        <input style="height:30px;width:200px;" type="text" value="<?php echo $menu_model->menu_action?>" name="menu_action" id="menu_action" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right">类型</td>
                    <td>
                        <label for="page_page">单页面</label><input <?php echo $menu_model->page_type==0?'checked="checked"':''?> id="page_page" name="page_type" type="radio" value="0" />&nbsp;&nbsp;
                        <label for="page_list">列表</label><input <?php echo $menu_model->page_type==1?'checked="checked"':''?> id="page_list" name="page_type" type="radio" value="1" />

                    </td>
                </tr>
                <tr>
                    <td width="100" align="right">子集关联</td>
                    <td>
                        <label for="relation_true">是</label><input id="relation_true" name="relation" type="radio" value="1" />&nbsp;&nbsp;
                        <label for="relation_false">否</label><input checked="checked" id="relation_false" name="relation" type="radio" value="0" />

                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="submit" class="btn" value="修改" />
                        <input name="button" class="btn not" type="button" value="取消" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
